package com.english.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 课程班级表
 *
 * @author wlq
 * @since 2025-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("course_class")
public class CourseClass implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 班级ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 班级名称：综合班/进阶班/冲刺班
     */
    @TableField("class_name")
    private String className;

    /**
     * 班级类型
     */
    @TableField("class_type")
    private ClassType classType;

    /**
     * 单课时价格
     */
    @TableField("price_per_hour")
    private BigDecimal pricePerHour;

    /**
     * 班级描述
     */
    @TableField("description")
    private String description;

    /**
     * 状态：1=活跃，0=停用
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 班级类型枚举
     */
    public enum ClassType {
        COMPREHENSIVE("综合班"),
        ADVANCED("进阶班"),
        SPRINT("冲刺班");

        private final String description;

        ClassType(String description) {
            this.description = description;
        }

        public String getDescription() {
            return description;
        }
    }
} 